package
{
    import com.hobby4fun.flex.utils.HttpServiceUtil;
    
    import flexunit.framework.Assert;
    import flexunit.framework.TestCase;
    
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.http.HTTPService;

    public class TestHttpServiceUtil extends TestCase
    {
    	public function testXmlFileReader() : void
    	{
    		var testXmlUrl:String = "test.xml";
    		var httpService:HTTPService = 
    			HttpServiceUtil.xmlFileReader(testXmlUrl, xmlResponseHandler, xmlFaultHandler);
    		httpService.send();
    	}
    	
        private function xmlResponseHandler(evt:ResultEvent):void
        {
        	Assert.assertTrue(true);
        }
        
        private function xmlFaultHandler(evt:FaultEvent):void
        {
        	Assert.assertTrue(true);
        }

    }
}